package com.eliza.library.model

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey


/*-*- coding:utf-8 -*-
 * @Author  : debi
 * @Time    : 5/3/22
 * @Software: Android Studio
 */
@Entity(tableName = "QQUser")

class QQUser {
    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "Id", typeAffinity = ColumnInfo.INTEGER)
    var id: Int = 0

    @ColumnInfo(name = "Name", typeAffinity = ColumnInfo.TEXT)
    var name: String = ""

    @ColumnInfo(name = "Pwd", typeAffinity = ColumnInfo.TEXT)
    var pwd: String = ""

    constructor(id: Int, name: String, pwd: String) {
        this.id = id
        this.name = name
        this.pwd = pwd
    }

    @Ignore
    constructor(id: Int) {
        this.id = id
    }

    @Ignore

    constructor(name: String, pwd: String) {
        this.name = name
        this.pwd = pwd
    }

    override fun toString(): String {
        return "QQUser(id=$id, name='$name', pwd='$pwd')"
    }


}